/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.etop.beans;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 项目进度表
 * @author Lin Duxiang
 */
@Entity
@Table(name="pro_schedule")
public class Pro_schedule {
    private int id;
    private Date time;//登记时间
    private String sche_desc;//进度描述
    private int p_id;//项目id
    
    public Pro_schedule() {
    }

    public Pro_schedule(Date time, String sche_desc, int p_id) {
        this.time = time;
        this.sche_desc = sche_desc;
        this.p_id = p_id;
    }
    
    public int getP_id() {
        return p_id;
    }

    public void setP_id(int p_id) {
        this.p_id = p_id;
    }
    @Id
    @GeneratedValue
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getSche_desc() {
        return sche_desc;
    }

    public void setSche_desc(String sche_desc) {
        this.sche_desc = sche_desc;
    }

    @Override
    public String toString() {
        return "Pro_schedule{" + "id=" + id + ", time=" + time + ", sche_desc=" + sche_desc + ", p_id=" + p_id + '}';
    }
    
}